package com.evony.common.beans 
{
    import com.evony.common.*;
    import flash.events.*;
    import mx.collections.*;
    import mx.events.*;
    
    public class GemStoneInPosBean extends Object
    {
        public function GemStoneInPosBean(arg1:Object=null)
        {
            super();
            var loc1:*=0;
            var loc2:*=null;
            _1694971109infroArray = new mx.collections.ArrayCollection();
            _bindingEventDispatcher = new flash.events.EventDispatcher(flash.events.IEventDispatcher(this));
            if (arg1 != null) 
            {
                if (arg1.pos != null) 
                {
                    this.pos = arg1.pos;
                }
                if (arg1.infro) 
                {
                    loc1 = 0;
                    while (loc1 < arg1.infro.length) 
                    {
                        loc2 = new com.evony.common.beans.GemStoneLvInfroBean(arg1.infro[loc1]);
                        this.infroArray.addItem(loc2);
                        ++loc1;
                    }
                }
            }
            return;
        }

        public function toDebugString(arg1:String=""):String
        {
            var loc1:*=0;
            var loc2:*="";
            loc2 = loc2 + (arg1 + "pos = " + this.pos + "\n");
            loc1 = 0;
            while (loc1 < this.infroArray.length) 
            {
                loc2 = loc2 + this.getInfro(loc1).toDebugString(arg1 + "infro[" + loc1 + "].");
                ++loc1;
            }
            return loc2;
        }

        public function copyTo(arg1:com.evony.common.beans.GemStoneInPosBean):void
        {
            arg1.pos = this.pos;
            com.evony.common.CommonUtil.arrayCopy(this.infroArray, arg1.infroArray);
            return;
        }

        public function toObject():Object
        {
            var loc1:*=new Object();
            loc1.pos = this.pos;
            return loc1;
        }

        public function setInfro(arg1:com.evony.common.beans.GemStoneLvInfroBean, arg2:int):void
        {
            this.infroArray[arg2] = arg1;
            return;
        }

        public function getInfro(arg1:int):com.evony.common.beans.GemStoneLvInfroBean
        {
            var loc1:*=this.infroArray[arg1] as com.evony.common.beans.GemStoneLvInfroBean;
            return loc1;
        }

        [Bindable]
        public var infroArray:mx.collections.ArrayCollection;

        [Bindable]
        public var pos:int;
    }
}
